package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.ProductEvent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * Created by oyhk on 14-6-22.
 *
 */
@Repository
public interface ProductEventRepository extends JpaRepository<ProductEvent, Long>, JpaSpecificationExecutor, ProductEventRepositoryCustom {

    List<ProductEvent> findBySharerIdAndDateCreatedBetween(Long sharerId, Date startDate,Date endDate);
}